package v3.chapter1.t11;

public class Run {

	public static void main(String[] args) {

		try {
			MyThread mythread=new MyThread();
			mythread.start();
			
			Thread.sleep(2000);
			Thread.interrupted();
		}catch(InterruptedException e) {
			System.out.println("main catch");
			e.printStackTrace();
		}
	}
}

class MyThread extends Thread {

	@Override
	public void run() {
		super.run();
		for (int i = 0; i < 500000; i++) {
			System.out.println("i=" + (i + 1));
		}
	}

}
